package org.jeecg.modules.engine.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.engine.entity.Task;
import org.jeecg.modules.engine.entity.vo.TaskVo;

/**
 * @Description: 任务表
 * @Author: jeecg-boot
 * @Date:   2020-07-21
 * @Version: V1.0
 */
public interface TaskMapper extends BaseMapper<Task> {

	boolean deleteByMainId(@Param("mainId") String mainId);

	List<Task> selectByMainId(@Param("mainId") String mainId);

	IPage<TaskVo> selectByProcId(Page<TaskVo> page, @Param("query") TaskVo taskVo);

	TaskVo selectByTaskId(@Param("taskId") String taskId);

	String selectIdByProcAndFrame(@Param("procId") String procId,@Param("frameId") String frameId);

}
